import service from '@/utils/request'

export const createOdsSupplier = (data) => {
  return service({
    url: '/odsSupplier/createOdsSupplier',
    method: 'post',
    data
  })
}

export const deleteOdsSupplier = (data) => {
  return service({
    url: '/odsSupplier/deleteOdsSupplier',
    method: 'delete',
    data
  })
}

export const deleteOdsSupplierByIds = (data) => {
  return service({
    url: '/odsSupplier/deleteOdsSupplierByIds',
    method: 'delete',
    data
  })
}

export const updateOdsSupplier = (data) => {
  return service({
    url: '/odsSupplier/updateOdsSupplier',
    method: 'put',
    data
  })
}

export const findOdsSupplier = (params) => {
  return service({
    url: '/odsSupplier/findOdsSupplier',
    method: 'get',
    params
  })
}

export const getOdsSupplierList = (params) => {
  return service({
    url: '/odsSupplier/getOdsSupplierList',
    method: 'get',
    params
  })
}

export const getAllOdsSuppliers = (params) => {
  return service({
    url: '/odsSupplier/getAllOdsSuppliers',
    method: 'get',
    params
  })
}

export const getOdsSupplierColLabel = (params) => {
  return service({
    url: '/odsSupplier/getOdsSupplierColLabel',
    method: 'get',
    params
  })
}
